<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org">
<head>
    <div th:replace="~{/fragment/header :: header}"></div>
    <div th:replace="~{/fragment/header :: header-css}"></div>
    <div th:replace="~{/fragment/header :: header-nav}"></div>
</head>
<body>
<form action="/order/save"  th:object="${order}" method="post">
    <input th:type="hidden" th:field="*{id}">
    <fieldset>
        <div class="col-auto">
            <label class="col-form-label" for="isPayCompleted"> 缴费完成状态：</label>
            <select class="form-control" id="isPayCompleted" name="isPayCompleted">
                <option value="true">已缴费</option>
                <option value="false">未缴费</option>
            </select>
        </div>

        <div class="col-auto">
            <label class="col-form-label" for="isRequireInvoicing"> 是否开具发票：</label>
            <select class="form-control" id="isRequireInvoicing" name="isRequireInvoicing">
                <option value="true">已开发票</option>
                <option value="false">未开发票</option>
            </select>
        </div>

        <div class="col-auto">
            <label class="col-form-label" for="pricingStandardId"> 关联收费标准：</label>
            <select class="form-control" id="pricingStandardId" name="pricingStandardId">
                <option th:each="pricingStandard:${pricingStandards}" th:value="${pricingStandard.id}" th:text="${pricingStandard.id}"></option>
            </select>
        </div>

        <div class="col-auto">
            <label class="col-form-label" for="parkingLotId"> 停车场：</label>
            <select class="form-control" id="parkingLotId" name="parkingLotId">
                <option th:each="parkingLot:${parkingLots}" th:value="${parkingLot.id}" th:text="${parkingLot.name}">入场</option>
            </select>
        </div>

        <div class="col-auto">
            <label class="col-form-label" for="vehicleId"> 车牌号：</label>
            <select class="form-control" id="vehicleId" name="vehicleId">
                <option th:each="vehicle:${vehicles}" th:value="${vehicle.id}" th:text="${vehicle.licencePlate}">入场</option>
            </select>
        </div>

        <button type="submit" class="btn btn-primary">提交</button>
        <a th:href="@{/order/list}" class="btn btn-primary">返回</a>
    </fieldset>
</form>
</body>
<div th:replace="~{/fragment/header :: header-js}"></div>
<div th:replace="~{/fragment/footer :: footer}"></div>
</html>